package com.woniuxy.hrp.service;

import com.woniuxy.hrp.entity.Department;

import java.util.List;

/**
 * @program: hrph
 * @InterfaceName DepartmentService
 * @description:
 * @author: LRW
 * @create: 2022-08-31 10:24
 * @Version 1.0
 **/
public interface DepartmentService {


    /***
     * @description: 根据医院id查所有科室
     * @param: hospitalId
     * @return: java.util.List<com.woniuxy.hrp.entity.Department>
     * @author Lrw
     * @date: 2022/8/31 10:28
     */
    List<Department> getDepartmentsByHospitalId(int hospitalId);

    /***
     * @description: 查所有一级科室
     * @param:
     * @return: java.util.List<com.woniuxy.hrp.entity.Department>
     * @author Lrw
     * @date: 2022/9/4 0:38
     */
    List<Department> getAllParentDepts(int hospId);

    /***
     * @description: 根据父id查所有二级科室
     * @param: pId
     * @return: java.util.List<com.woniuxy.hrp.entity.Department>
     * @author Lrw
     * @date: 2022/9/4 0:39
     */
    List<Department> getChildrenByPid(int pId);

}
